<template>
  <div class="maintain_device">
    <el-dialog
      title="设备报废"
      :visible.sync="dialogTableVisible"
      width="400px"
      height="auto"
      v-dialogDrag
      :close-on-click-modal="false"
      customClass="mes_dialog"
      @closed="closeDialog">
      <p>选中的设备将被报废，是否继续？</p>
      <span slot="footer" class="dialog-footer mes_btn">
        <el-button type="danger">确认</el-button>
        <el-button @click="dialogTableVisible = false">取消</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'ScrapDevice',
  data() {
    return {
      dialogTableVisible: false,
      formData: [], // 工序数据
      // 获取序列号请求参数
      serialData: {
        prefix: '',
        num: null
      },
      rules: {
        prefix: [
          {required: true, message: '请输入前缀', trigger: 'blur'},
        ],
        num: [
          {required: true, message: '请输入数量', trigger: 'blur'},
        ]
      },
      treeList: [1]
    }
  },
  methods: {
    openDialog() {
      this.dialogTableVisible = true
    },
    closeDialog() {}
  }
}
</script>

<style scoped>

</style>
